<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>限流函数 - Lodash</title>
    <script src="https://unpkg.com/vue@next"></script>
    <script src="https://unpkg.com/lodash@4.17.20/lodash.min.js"></script>
  </head>
  <body>
    <div id="Application">
      <button @click="click">按钮</button>
    </div>
  </body>

  <script>
    const App= {
      methods: {
        click: _.debounce(function(){
            console.log(Date())
        }, 2000)
      }
    }
    Vue.createApp(App).mount("#Application")
  </script>

</html>